<?php

namespace app\admin\model;

use think\Model;
use traits\model\SoftDelete;
use app\admin\model\User as UserModel;

class Deallist extends Model{


    //自动完成字段设置
    protected $auto = ['ip','create_time'];

    //protected $update = ['login_ip'];
    //自动获取IP
    protected function setIpAttr(){
        return request()->ip();
    }

    //更新时间
    protected function setCreateTimeAttr($value){
        return strtotime($value);
    }
}

?>